package com.dreamsail.core.controller;

import com.dreamsail.core.entity.Role;
import com.dreamsail.core.model.system.PageInfo;
import com.dreamsail.core.model.system.Result;
import com.dreamsail.core.service.RoleService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 角色控制
 */
@RestController
@RequestMapping("role")
public class RoleController {

    @Resource
    RoleService roleService;

    @PostMapping("role/page")
    public Result<PageInfo<Role>> getRolePage(@RequestBody PageInfo pageInfo){


        return new Result<>();
    }
}
